import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App"
import store from "./redux/store";
  
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <App />
);

//直接重构整个页面，diff算法开着的，只替换要换的部分
store.subscribe(() => {
  root.render(
    <App />
  );
})